package com.example.taobaounion.utils;

import android.util.Log;

public class LogUtils {
    private static final int CURRENTLEV=4;
    private static final int DEBUGLEV=4;
    private static final int INFOLEV =3;
    private static final int WARNINGLEV=2;
    private static final int ERRORLEV=1;

    public static void d(Object clazz,String log){
        if(CURRENTLEV>=DEBUGLEV){
            Log.d(clazz.getClass().getSimpleName(), log);
        }
    }

    public static void i(Object clazz,String log){
        if(CURRENTLEV>= INFOLEV){
            Log.i(clazz.getClass().getSimpleName(), log);
        }
    }
    public static void w(Object clazz,String log){
        if(CURRENTLEV>=WARNINGLEV){
            Log.w(clazz.getClass().getSimpleName(), log);
        }
    }
    public static void e(Object clazz,String log){
        if(CURRENTLEV>=ERRORLEV){
            Log.e(clazz.getClass().getSimpleName(), log);
        }
    }
}
